Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐧 bump Ubuntu core images to 23.04 #1433

Merged
merged 5 commits into from
Jun 14, 2023
Merged

Conversation

mauromorales
Copy link
Member

@mauromorales mauromorales commented May 19, 2023

What this PR does / why we need it:

  • amd64 image
  • netboot
  • arm generic
  • arm rpi

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1430

@mauromorales
Copy link
Member Author

Getting the following error for the generic arm image

image

@mauromorales
Copy link
Member Author

Ok this was not a problem with the image itself, I only needed to tell the VM to use the aarch64 UEFI

@mauromorales mauromorales marked this pull request as ready for review May 22, 2023 15:27
@mauromorales mauromorales requested a review from a team May 22, 2023 15:27
Itxaka
Itxaka previously approved these changes May 23, 2023
Copy link
Member

@Itxaka Itxaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice!

jimmykarily
jimmykarily previously approved these changes May 23, 2023
@mauromorales
Copy link
Member Author

mauromorales commented May 25, 2023

After installation, I'm seeing different errors. The first one there seems to be releated to the tmpfiles-setup service:

Welcome to Ubuntu 23.04 dracut-059-3 (Initramfs)!

[   10.527180] systemd[1]: Starting systemd-journald.service - Journal Service...
         Starting systemd-journald.service - Journal Service...
[   10.533308] systemd[1]: dracut-cmdline-ask.service - dracut ask for additional cmdline parameters was skipped because no trigger condition checks were met.
[   10.539979] systemd[1]: Starting dracut-cmdline.service - dracut cmdline hook...
[   10.544052] systemd[82]: dracut-cmdline.service: Failed to set process secure bits: Invalid argument
         Starting dracut-cmdline.service - dracut cmdline hook...
[   10.562830] systemd[83]: kmod-static-nodes.service: Failed to set process secure bits: Invalid argument
[   10.566571] systemd[1]: Starting kmod-static-nodes.service - Create List of Static Device Nodes...
         Starting kmod-static-nodes…ate List of Static Device Nodes...
[   10.574597] systemd[1]: Starting systemd-modules-load.service - Load Kernel Modules...
[   10.579802] systemd[84]: systemd-modules-load.service: Failed to set process secure bits: Invalid argument
         Starting systemd-modules-l…rvice - Load Kernel Modules...
[   10.593054] systemd[1]: systemd-journald.service: Main process exited, code=exited, status=218/CAPABILITIES
[   10.598635] systemd[1]: systemd-journald.service: Failed with result 'exit-code'.
[   10.603403] systemd[1]: Failed to start systemd-journald.service - Journal Service.
[FAILED] Failed to start systemd-jo…ald.service - Journal Service.
...
[FAILED] Failed to start kmod-stati…reate List of Static Device Nodes.
See 'systemctl status kmod-static-nodes.service' for details.
[   10.642892] systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=213/SECUREBITS
[   10.646952] systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
[   10.650564] systemd[1]: Failed to start systemd-modules-load.service - Load Kernel Modules.
[FAILED] Failed to start systemd-mo…service - Load Kernel Modules.
...
[   10.814267] systemd[1]: Failed to start systemd-sysctl.service - Apply Kernel Variables.
[FAILED] Failed to start systemd-sy…vice - Apply Kernel Variables.
See 'systemctl status systemd-sysctl.service' for details.
[   10.822675] systemd[1]: systemd-tmpfiles-setup-dev.service: Main process exited, code=exited, status=243/CREDENTIALS
[   10.827574] systemd[1]: systemd-tmpfiles-setup-dev.service: Failed with result 'exit-code'.
[   10.837512] systemd[1]: Failed to start systemd-tmpfiles-setup-dev.service - Create Static Device Nodes in /dev.
[FAILED] Failed to start systemd-tm…reate Static Device Nodes in /dev.
See 'systemctl status systemd-tmpfiles-setup-dev.service' for details.
[   10.846886] systemd[1]: systemd-journald.service: Scheduled restart job, restart counter is at 2.
[   10.850543] systemd[1]: Stopped systemd-journald.service - Journal Service.

@mauromorales mauromorales dismissed stale reviews from jimmykarily and Itxaka via 502da13 May 25, 2023 10:02
@mauromorales mauromorales force-pushed the 1430-bump-ubuntu-rolling branch from 4245430 to 502da13 Compare May 25, 2023 10:02
@mauromorales
Copy link
Member Author

I tried mounting tmp the way it's done for alpine in the overlay files with no success

@mauromorales
Copy link
Member Author

Tried creating /run/systemd/journald manually but also didn't help. Updated the error messages above to include all errors I see. Maybe I'm focusing on the wrong one. If you have any suggestions, they are more than welcome!

@mauromorales mauromorales changed the title 🐧 bump ubuntu to 23.04 and use rolling tag 🐧 bump Ubuntu core images to 23.04 May 26, 2023
@Itxaka
Copy link
Member

Itxaka commented May 26, 2023

[    4.075008] systemd[1]: Starting systemd-journald.service - Journal Service...
[    4.075150] systemd[158]: systemd-journald.service: Failed to drop capabilities: Invalid argument

hidden in the dracut log, no idea what it means

@Itxaka
Copy link
Member

Itxaka commented May 26, 2023

something very wrong is happening

If you boot the livedvd with the interactive-installer option you will see the kairos-reset come up for a bit, then the interactive installer. Checking the systemd to see if the service is active, indeed kairos-reset and kairos-recovery services are up....

@mauromorales mauromorales marked this pull request as draft June 2, 2023 07:07
@mauromorales mauromorales force-pushed the 1430-bump-ubuntu-rolling branch from 0798d4a to a6cef2e Compare June 2, 2023 08:50
@mauromorales
Copy link
Member Author

booted the Ubuntu 22.04, to compare and see if I spotted some differences and here's what I got:

Ubuntu 22.04 (working)

Run /init as init process
	with arguments:
    	/init
    with environment:
    	HOME=/
        TERM=linux
        BOOT_IMAGE=(loop0/boot/vmlinuz)
        cos-img/filename=/cOS/active.img
        vga=795
...
systemd[1]: Running in initial RAM disk

Ubuntu 23.04 (buggy)

Run /init as init process
...
systemd[1]: Running in initrd

@mauromorales mauromorales force-pushed the 1430-bump-ubuntu-rolling branch 2 times, most recently from 390c6e5 to e837a80 Compare June 6, 2023 12:02
@mauromorales
Copy link
Member Author

All but netboot seems to be working now. Not sure why but this version is only booting with selinux enabled. I tried enabling in the cmdline used to netboot with AuroraBoot but it still fails to boot

Signed-off-by: Mauro Morales <[email protected]>
Signed-off-by: Mauro Morales <[email protected]>
Signed-off-by: Mauro Morales <[email protected]>
@mauromorales mauromorales force-pushed the 1430-bump-ubuntu-rolling branch from e837a80 to 93d12e5 Compare June 6, 2023 21:31
Signed-off-by: Mauro Morales <[email protected]>
@mauromorales
Copy link
Member Author

The stanza needed for the netboot was the one for overlayfs support. Added it and netboot is working. At this point I think all tests should be green so putting it again for review

@mauromorales mauromorales marked this pull request as ready for review June 6, 2023 21:54
@mauromorales mauromorales requested a review from a team June 6, 2023 21:54
Copy link
Member

@Itxaka Itxaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@jimmykarily
Copy link
Contributor

Let's merge this after releasing 2.2.0 . We'll use and updated ubuntu in 2.3.0 (we don't want to do this last minute change).

@mauromorales mauromorales merged commit b0c205b into master Jun 14, 2023
@mauromorales mauromorales deleted the 1430-bump-ubuntu-rolling branch June 14, 2023 12:52
Itxaka pushed a commit to Itxaka/kairos that referenced this pull request Jun 15, 2023
* bump ubuntu to 23.04 and use rolling tag

Signed-off-by: Mauro Morales <[email protected]>

* apply overlayfs patch

Signed-off-by: Mauro Morales <[email protected]>

* Enable selinux on Ubuntu

Signed-off-by: Mauro Morales <[email protected]>

* add netboot cmdline stanzas

Signed-off-by: Mauro Morales <[email protected]>

* remove selinux for netboot

Signed-off-by: Mauro Morales <[email protected]>

---------

Signed-off-by: Mauro Morales <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Bump ubuntu images from 22.10 to 23.04
3 participants